package com.zhangwei.flashviewdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.zhangwei.flashlib.flashview.FlashView;
import com.zhangwei.flashlib.flashview.listener.FlashViewListener;

import java.util.ArrayList;

public class MainActivity extends AppCompatActivity {
    FlashView flashView;
    private ArrayList<String> imgUrls = new ArrayList<>();


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        flashView = (FlashView) findViewById(R.id.flashView);
        flashView.setImageUris(imgUrls);
        flashView.setOnPageClickListener(new FlashViewListener() {
            @Override
            public void onClick(int position) {
            }
        });


    }
}
